package com.zhao.blog.dao;

import com.zhao.blog.pojo.Comment;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author xiaoZhao
 * @date 2022/2/7
 * @describe
 */
public interface CommentDao extends JpaRepository<Comment,Long> {

    List<Comment> findByBlogIdAndParentCommentNull(Long id, Sort sort);
}
